import { http } from '@/utils/http'

// 获取微信支付参数
export const getWXpay = (orderId: string) => {
  return http<WechatMiniprogram.RequestPaymentOption>({
    url: '/pay/wxPay/miniPay',
    method: 'GET',
    data: {
      orderId,
    },
  })
}

// 获取模拟参数
export const getWXMockpay = (orderId: string) => {
  return http({
    url: '/pay/mock',
    method: 'GET',
    data: {
      orderId,
    },
  })
}